package com.aegean.MonitorExamSYS.android.action;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.android.business.AndroidBusiness;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ShowExamineeStatusForAndroid")
@Scope("prototype")
public class ShowExamineeStatusForAndroid extends ActionSupport {
	@Resource
	AndroidBusiness business;
	private int user_Id;
	private int status;
	private String comments;

	public int getUser_Id() {
		return user_Id;
	}

	public void setUser_Id(int user_Id) {
		this.user_Id = user_Id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		Map<String, String> maps = business.showExamineeStatus(user_Id);
		status = Integer.valueOf(maps.get("status"));
		comments = maps.get("comments");
		return SUCCESS;
	}

}
